﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.IO;
using System.Reflection;
using System.Diagnostics;
using System.Runtime.InteropServices;
using OpenESSOConfigurator.PresentationLayer.PresentationModels;
using OpenESSOConfigurator.PresentationLayer.EventBroker;
using OpenESSOConfigurator.PresentationLayer.EventBroker.Handlers;
using OpenESSOConfigurator.BusinessLayer.Atoms;
using OpenESSOConfigurator.BusinessLayer;


namespace OpenESSOConfigurator.PresentationLayer.UserControls
{
    public partial class ApplicationConfig : UserControl,IView
    {

     

        public ApplicationConfig()
        {
            
            InitializeComponent();
            this.winApplicationBindingSource.DataSource = WinApplicationPresentationModel.Instance.WinApplication;
            this.passwordPoliciesBindingSource.DataSource = ItemTreePresentationModel.Instance.OpenESSOConfiguration.PasswordPolicies;
            this.csgBindingSource.DataSource = ItemTreePresentationModel.Instance.OpenESSOConfiguration.CredentialSharingGroups;

        }

        private void ApplicationView_Load(object sender, EventArgs e)
        {
            WinApplicationPresentationModel.Instance.RegisterView(this);
            this.Update();
        }

        public new void Update()
        {

        }


  

    }
}
